package com.test5;

import com.test5.bean.User;
import com.test5.controller.UserController;
import com.test5.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Admin on 9/17 0017.
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext con=new ClassPathXmlApplicationContext("test5.xml");
        TestObject testObject= (TestObject) con.getBean("testObject");
        System.out.println(testObject);
        UserController userController= (UserController) con.getBean("userController");
        System.out.println(userController);
        User user= (User) con.getBean("user");
        System.out.println(user);
        UserService userService= (UserService) con.getBean("userService");
        System.out.println(userService);
//        userController.execute();
    }
}
